package cn.edu.scau.cmi.zhuangyi.abstractFactory;

import cn.edu.scau.cmi.zhuangyi.simpleFactoryMethod.Meat;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "Tianbang":
			return new TianbangFactory();
		case "Aonong":
			return new AonongFactory();
		case "Wens":
			return new WensFactory();
		}
		return null;

	}
	
	public abstract Meat createBeef();
	public abstract Meat createChicken();
	public abstract Meat createPork();

}